package com.hospital.workstation.service;

import com.hospital.workstation.domain.PillSuggest;
import com.hospital.workstation.domain.bo.PillEducationBo;
import com.hospital.workstation.domain.vo.PillSuggestVo;
import com.hospital.workstation.domain.bo.PillSuggestBo;
import com.hospital.common.core.page.TableDataInfo;
import com.hospital.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 用药建议Service接口
 *
 * @author whb
 * @date 2023-03-10
 */
public interface IPillSuggestService {

    /**
     * 查询用药建议
     */
    PillSuggestVo queryById(Long id);

    /**
     * 查询用药建议列表
     */
    TableDataInfo<PillSuggestVo> queryPageList(PillSuggestBo bo, PageQuery pageQuery);

    /**
     * 查询用药建议列表
     */
    List<PillSuggestVo> queryList(PillSuggestBo bo);

    /**
     * 新增用药建议
     */
    Boolean insertByBo(PillSuggestBo bo);

    /**
     * 修改用药建议
     */
    Boolean updateByBo(PillSuggestBo bo);

    /**
     * 校验并批量删除用药建议信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 根据病历号获取用药建议信息
     *
     * @param medicalRecordNo 病历号
     * @return
     */
    PillSuggestVo queryByMedicalRecordNo(Integer medicalRecordNo);

    /**
     * 保存用药建议信息
     *
     * @param bo 用药建议业务对象
     * @return
     */
    Boolean save(PillSuggestBo bo);
}
